package com.example.demo.mapper;

import com.example.demo.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface CourseMapper {
    List<Course> getCourseList();
    Course getCourseByName(String name);
    Course getCourseById(int id);
    Course getCourseByCnoAndCname(@Param("id") int id, @Param("name") String name);
    int addCourse(Course course);
}
